import numpy as np
import sys

NP=int(sys.argv[1])
A = np.loadtxt("res.out", delimiter=' ')

count=1

for a in A:
  if a>=100:
    print(a, end ="  ") 
    count=count+1
    if(count>NP):
      print("")
      count=1



